<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变量的类型</title>
    <script type="text/javascript">
        var var_01=3;  //全局变量
        function method01(){
            var var_02=1;  //局部变量
            console.log(var_02)
        }
        console.log(var_01);
        //console.log(var_02);
        method01();
    </script>
</head>
<body>

</body>
</html>